import request from '@/utils/request'

// 获取应急物资列表
export function getStockInfoSimple() {
  return request({
    url: '/oa/stock-info/bpmSimple-list',
    method: 'get',
  })
}

// 新增物资申请
export function createOaInventory(data) {
  return request({
    url: '/bpm/oa-inventory/create',
    method: 'post',
	data
  })
}

// 查询应急保障物资申请分页
export function getOaInventoryPage(data) {
  return request({
    url: '/bpm/oa-inventory/page',
    method: 'get',
	data
  })
}


// 查询应急保障物资申请详情
export function getOaInventory(data) {
  return request({
    url: '/bpm/oa-inventory/get',
    method: 'get',
	data
  })
}

// 获取库存商品列表
export function getStockGetByParentId(data) {
  return request({
    url: '/oa/stock/getByParentId',
    method: 'get',
	data
  })
}

// 物资审核专用
export function oaInventoryApprove(data) {
  return request({
    url: '/bpm/oa-inventory/approve',
    method: 'post',
	data
  })
}
